package com.tbs.parkingsaleapp.Http.Listenner;
import abstergo.tbs.betterasyc.AsycBase.IAsycBackgroundAction;
import abstergo.tbs.betterasyc.AsycBase.IAsycResultAction;
import com.tbs.parkingsaleapp.Http.HttpHelper;
import com.tbs.parkingsaleapp.SystemManager.NetWorkSetting;
import com.tbs.parkingsaleapp.UI.LoginOrSign.Base.SignFragment;

public class RegHttper implements IAsycBackgroundAction<SignFragment.UserData,Integer> {
    @Override
    public Integer BackGroundAction(SignFragment.UserData... params)throws Exception {
       String str= NetWorkSetting.RegisterUrl(params[0].id,params[0].name,params[0].password,params[0].phone,params[0].face);
        String s= HttpHelper.Get(str).trim();
        return Integer.valueOf(s);
    }
}
